package com.wys.common.utils;

import cn.hutool.core.util.StrUtil;

/**
 * 字符串工具类
 * @Package com.wys.common.utils
 * @Author charlin
 * @Version: v1.0
 * @Date 2021-06-2110:38
 * @Copyright: 2021 www.wyscha.com Inc. All rights reserved.
 */
public class MyStrUtil {

    public static boolean isEmpty(String str){
        if(StrUtil.isEmpty(str) || str.equalsIgnoreCase("null")){
            return  true;
        }
        return false;
    }

    public static boolean isNotEmpty(String str){
        return !isEmpty(str);
    }

    public static boolean isBlank(String str){
        if(StrUtil.isEmpty(str) || "null".equalsIgnoreCase(str) || "0".equalsIgnoreCase(str)){
            return  true;
        }
        return false;
    }

    public static boolean isNotBlank(String str){
        return !isBlank(str);
    }
}
